package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysCommissionrecordMapper;
import com.ruoyi.system.domain.SysCommissionrecord;
import com.ruoyi.system.service.ISysCommissionrecordService;

/**
 * 积分佣金记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-06-13
 */
@Service
public class SysCommissionrecordServiceImpl implements ISysCommissionrecordService 
{
    @Autowired
    private SysCommissionrecordMapper sysCommissionrecordMapper;

    /**
     * 查询积分佣金记录
     * 
     * @param commid 积分佣金记录ID
     * @return 积分佣金记录
     */
    @Override
    public SysCommissionrecord selectSysCommissionrecordById(Long commid)
    {
        return sysCommissionrecordMapper.selectSysCommissionrecordById(commid);
    }

    /**
     * 查询积分佣金记录列表
     * 
     * @param sysCommissionrecord 积分佣金记录
     * @return 积分佣金记录
     */
    @Override
    public List<SysCommissionrecord> selectSysCommissionrecordList(SysCommissionrecord sysCommissionrecord)
    {
        return sysCommissionrecordMapper.selectSysCommissionrecordList(sysCommissionrecord);
    }

    /**
     * 新增积分佣金记录
     * 
     * @param sysCommissionrecord 积分佣金记录
     * @return 结果
     */
    @Override
    public int insertSysCommissionrecord(SysCommissionrecord sysCommissionrecord)
    {
        return sysCommissionrecordMapper.insertSysCommissionrecord(sysCommissionrecord);
    }

    /**
     * 修改积分佣金记录
     * 
     * @param sysCommissionrecord 积分佣金记录
     * @return 结果
     */
    @Override
    public int updateSysCommissionrecord(SysCommissionrecord sysCommissionrecord)
    {
        return sysCommissionrecordMapper.updateSysCommissionrecord(sysCommissionrecord);
    }

    /**
     * 批量删除积分佣金记录
     * 
     * @param commids 需要删除的积分佣金记录ID
     * @return 结果
     */
    @Override
    public int deleteSysCommissionrecordByIds(Long[] commids)
    {
        return sysCommissionrecordMapper.deleteSysCommissionrecordByIds(commids);
    }

    /**
     * 删除积分佣金记录信息
     * 
     * @param commid 积分佣金记录ID
     * @return 结果
     */
    @Override
    public int deleteSysCommissionrecordById(Long commid)
    {
        return sysCommissionrecordMapper.deleteSysCommissionrecordById(commid);
    }
}
